package com.candy.pojo;

public class Student {
    private Integer stuNo;
    private String stuName;
    private Integer stuAge;
    private Teacher teacher;

    public Student() {
    }

    public Student(Integer stuNo, String stuName, Integer stuAge, Teacher teacher) {
        this.stuNo = stuNo;
        this.stuName = stuName;
        this.stuAge = stuAge;
        this.teacher = teacher;
    }

    public Integer getStuNo() {
        return stuNo;
    }

    public void setStuNo(Integer stuNo) {
        this.stuNo = stuNo;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public Integer getStuAge() {
        return stuAge;
    }

    public void setStuAge(Integer stuAge) {
        this.stuAge = stuAge;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }


    public void doEatting(){
        System.out.println("学生正在吃饭");
    }
    public void doStuding(){
        System.out.println("学生在学习");
    }
    public void doPlayting(){
        System.out.println("学生在打游戏");
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuNo=" + stuNo +
                ", stuName='" + stuName + '\'' +
                ", stuAge=" + stuAge +
                ", teacher=" + teacher +
                '}';
    }
}
